
<%@page import="controller.Utils"%>
<%@page import="models.Domain"%>
<%

String strs = (String) request.getAttribute("strs");
String name = (String) request.getAttribute("name");
Domain domain = (Domain) request.getAttribute("domain");

String title = "Whois " + domain.getDomain();
String description = "Whois "+domain.getDomain()+".Here you can find information about a domain such as creation date, expiration date of the domain, and some other information about the domain";
String keywords = domain.getDomain()+"whois,domain,whois domain,ip,whois ip,infomation whois";
%>
<jsp:include page="/layout/header.jsp">
	<jsp:param name="title" value="<%=title %>"/>
	<jsp:param name="description" value="<%=description %>"/>
	<jsp:param name="keywords" value="<%=keywords %>"/>
	<jsp:param name="index" value="true"/>
</jsp:include>

		<section id="content">
        	<div id="content_inner">
            	<div class="rotarapes"></div>                
                <div id="leftSideContent">
                	<div id="whoisPage">
                        <div class="simpleBox clearafter">
                            <h3 class="title">Whois : <a href="/d/<%=domain.getDomain() %>" class="l_whois"><%=domain.getDomain() %></a></h3>
                            <form action="/sw" class="whoisForm">
								<input type="text" name="name" value="example.com" onclick="javascript:this.value = ''"/>
								<button>Whois</button>
							</form>
                            <div class="rotarapes"></div>
                            <div class="whoisResultContent">
                                <%=(domain.getWhois()!=null)?Utils.returnWhois(domain.getWhois().getValue()):"No whois" %>
                            </div>
                        </div>
                    </div>
                </div>
                <aside id="rightSideContent">
                	<div class="simpleBox">
                    	<%@ include file='/adv/left.jsp'%>
                    </div>
                    <div class="simpleBox">
                    	<%@ include file='/adv/left.jsp'%>
                    </div>
                </aside>
                <div class="clearbreak"></div>
            </div>
        </section>
	
<%@ include file='/layout/footer.jsp'%>		